package vip.geeker.iotms.persistance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import vip.geeker.iotms.dto.DeviceTypeDto;
import vip.geeker.iotms.persistance.model.DeviceType;

import java.util.List;

public interface DeviceTypeMapper extends BaseMapper<DeviceType> {

    int insert(DeviceType record);

    int insertSelective(DeviceType record);

    List<DeviceType> queryDeviceTypeList(DeviceType record);

    int nextVal();

    List<DeviceTypeDto> queryDeviceTypeTree(DeviceTypeDto record);

    List<DeviceTypeDto> queryDeviceTypeByParentId(Integer parentId);

    DeviceType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DeviceType record);

}
